#pragma once
#include <string>
using std::string;
class TLVmsg
{
public:
    TLVmsg(string &tlvmsg);
    int getMsglen(){return _valuelen;}
    string build_tlv(int tag, int len, const string & value);
    void parse_tlv();
    int getTaskType(){return _tasktype;}
    int getValueLen(){return _valuelen;}
    string getValue(){return _value;}

private:
    string &_data;
    int _typeTagLen;
    int _msgTagLen;
    bool _isrecursive;
    int _tasktype;
    string _value;
    int _valuelen;

    


};

